<?php

namespace pam\Model;

/**
 * Description of User
 *
 * @author Robert Bwana
 */

use ZfcUser\Entity\UserInterface;

class User implements UserInterface{
    private $id;
    private $username;
    private $password;
    private $access_level;
    
    function getId() {
        return $this->id;
    }

    function getUsername() {
        return $this->username;
    }

    function getPassword() {
        return $this->password;
    }

    function getAccess_level() {
        return $this->access_level;
    }

    function setId($id) {
        $this->id = $id;
    }

    function setUsername($username) {
        $this->username = $username;
    }

    function setPassword($password) {
        $this->password = $password;
    }

    function setAccess_level($access_level) {
        $this->access_level = $access_level;
    }

    public function getDisplayName() {
        return $this->getUsername();
    }

    public function getEmail() {
        return null;
    }

    public function getState() {
        return $this->getAccess_level();
    }

}
